﻿using McKearney.BundlingTweaks;

namespace System.Web.Optimization
{
    public static class BundlesExtensions
    {
        public static void DisableMinify(this BundleCollection bundles)
        {
            // override all the transforms
            foreach (var b in BundleTable.Bundles)
            {
                b.Transform = new InstrumentedBundleTransform(b.Transform);
                b.Builder = new NonMinifyingBundleBuilder(b.Builder);
            }
        }
    }
}